package com.example.dmo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "student")//从配置文件中读取数据并赋值
@Data
@Component

public class Student {
    private int id;
    private String name;
    private int age;
}
